const mineRouter = {
  path: '/mines',
  component: () => import('@/layout/common'),
  alwaysShow: true,
  redirect: 'noRedirect',
  meta: {
    title: '我的',
    keepAlive: false
  },
  children: [
    {
      path: '/order',
      name: 'Order',
      component: () => import('@/views/mine/order/index'),
      meta: { title: '我的订单', keepAlive: false }
    },
    // {
    //   path: '/failed-detail',
    //   name: 'FailedDetail',
    //   component: () => import('@/views/mine/order/failed-detail'),
    //   meta: { title: '已失效订单详情', keepAlive: false }
    // },
    // {
    //   path: '/prepaid-detail',
    //   name: 'PrepaidDetail',
    //   component: () => import('@/views/mine/order/prepaid-detail'),
    //   meta: { title: '支付成功', keepAlive: false }
    // },
    // {
    //   path: '/unpaid-detail',
    //   name: 'UnpaidDetail',
    //   component: () => import('@/views/mine/order/unpaid-detail'),
    //   meta: { title: '待支付订单详情', keepAlive: false }
    // },
    {
      path: '/course',
      name: 'Course',
      component: () => import('@/views/mine/course/index'),
      meta: { title: '我的课程', keepAlive: false }
    },
    {
      path: '/personal-information',
      name: 'PersonalInformation',
      component: () => import('@/views/mine/personal-information/index'),
      meta: { title: '个人信息', keepAlive: false }
    },
    {
      path: '/nickname',
      name: 'Nickname',
      component: () => import('@/views/mine/personal-information/nickname'),
      meta: { title: '修改昵称', keepAlive: false }
    },
    {
      path: '/real-name',
      name: 'RealName',
      component: () => import('@/views/mine/personal-information/real-name'),
      meta: { title: '修改姓名', keepAlive: false }
    },
    {
      path: '/mailing-address',
      name: 'MailingAddress',
      component: () => import('@/views/mine/personal-information/mailing-address'),
      meta: { title: '邮寄地址', keepAlive: false }
    },
    {
      path: '/change-password',
      name: 'ChangePassword',
      component: () => import('@/views/mine/personal-information/change-password'),
      meta: { title: '修改密码', keepAlive: false }
    },
    {
      path: '/edit-address',
      name: 'EditAddress',
      component: () => import('@/views/mine/personal-information/edit-address'),
      meta: { title: '编辑地址', keepAlive: false }
    },
    {
      path: '/class-schedule',
      name: 'ClassSchedule',
      component: () => import('@/views/mine/class-schedule/index'),
      meta: { title: '课程表', keepAlive: false }
    },
    {
      path: '/collect',
      name: 'Collect',
      component: () => import('@/views/mine/collect/index'),
      meta: { title: '我的收藏', keepAlive: false }
    },
    {
      path: '/contact-us',
      name: 'ContactUs',
      component: () => import('@/views/mine/contact-us/index'),
      meta: { title: '联系我们', keepAlive: false }
    }
  ]
}

export default mineRouter
